# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=subdomainer
pkgver=1.2
pkgrel=6
pkgdesc='A tool designed for obtaining subdomain names from public sources.'
url='http://www.edge-security.com/subdomainer.php'
groups=('blackarch' 'blackarch-recon' 'blackarch-scanner')
license=('GPL2')
depends=('python2')
arch=('any')
source=("http://www.edge-security.com/soft/$pkgname.py")
sha512sums=('e170f9a8b89316da7f49ad66fb88dbca35b5310c2cf5ac4fe5e88cededa718a178f73d300d31a3c1d69689c5d43ce36cddb29b02c27213bb61f293335477968b')

prepare() {
  sed -ie '1 s|^|#!/usr/bin/env python2\n\n|' "$pkgname.py"
}

package() {
  install -Dm 755 "$pkgname.py" "$pkgdir/usr/bin/$pkgname"
}

